--
-- Author: mm
-- Date: 2018-05-07 18:07:08
--
-- GameplaypreviewModel
--

local fileName = string.getModeName(...)
local ClassRef = class(fileName, app.mvc.ModelBase)

function ClassRef:ctor(data)
    self.super.ctor(self, data)
end

function ClassRef:init()
	self._gamePlayPreviewList = GD:getGamePlayPreViewConfs()
end

function ClassRef:getGamePlayInfoByIdx( idx )
	if not self._gamePlayPreviewList then
		self._gamePlayPreviewList = GD:getGamePlayPreViewConfs()
	end
	return self._gamePlayPreviewList[ idx ] or {}
end

function ClassRef:getGamePlayInfos()
	return self._gamePlayPreviewList
end

function ClassRef:getGamePlayInfoMaxNum()
	return #self._gamePlayPreviewList
end
------------------------ receive ------------------------


------------------------ request ------------------------

return ClassRef
